<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"><script src="https://unpkg.com/vue@next"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button v-on:click="btnAction">点击</button>
          <button @click="btnAction">点击-简写</button>
    </div>
    <script>
        const app = Vue.createApp({
            data(){
                return{
                }
            },
            methods: {
                btnAction(){
                    console.log("123")
                }
            }
            
        }).mount("#app")
    </script>
</body>
</html>